package com.koocloud.electroplatemanage.auth.mapper;

import java.util.List;

import com.koocloud.electroplatemanage.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;





@Mapper
public interface RoleDao{
	
	@Select("select r.* from user u,user_role ur,role r where u.id=ur.role_id and ur.role_id=r.id and u.username=#{userName}")
	List<Role> getRolesByUserName(String userName);

}
